import request from '@/utils/request'

// 查询入库记录信息列表
export function listRep(query) {
  return request({
    url: '/system/rep/list',
    method: 'get',
    params: query
  })
}

// 查询入库记录信息详细
export function getRep(repId) {
  return request({
    url: '/system/rep/' + repId,
    method: 'get'
  })
}

// 新增入库记录信息
export function addRep(data) {
  return request({
    url: '/system/rep',
    method: 'post',
    data: data
  })
}

// 修改入库记录信息
export function updateRep(data) {
  return request({
    url: '/system/rep',
    method: 'put',
    data: data
  })
}

// 删除入库记录信息
export function delRep(repId) {
  return request({
    url: '/system/rep/' + repId,
    method: 'delete'
  })
}
